package hr.fer.pus.dll_will.cr;

import java.io.IOException;

import javax.servlet.ServletOutputStream;
import javax.servlet.http.HttpServletRequest;

/**
 * Servlet action handler.
 * Contains logic of action requested from servlet.
 */
public interface IActionHandler {
	
	/**
	 * Servlet action performer.
	 * 
	 * @param out Servlet output stream.
	 * @param request Request in which action was made.
	 * @return True if action is performed sucessfuly, otherwise false.
	 * @throws IOException If error occurs while writeing to stream.
	 */
	boolean performAction(ServletOutputStream out, HttpServletRequest request) throws IOException;
}
